<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "" "">
<f:view xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:w="http://www.apusic.com/jsf/widget" xmlns:layout="http://www.apusic.com/jsf/layout"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:ajax="http://www.apusic.com/jsf/ajax"
	renderKitId="AJAX">
	<w:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<w:stylesheet src="/resources/css/style.css" />
	</w:head>
	<w:page title="#{label.pack_title}">
		<w:form>
			<layout:panelGrid columns="4" cellpadding="0" cellspacing="0" styleClass="form"
				columnClasses="formLabel,formItem">
				<layout:cell colspan="1" rowspan="1">
					<h:outputLabel value="#{label.pack_name}" for="nameTf" />
				</layout:cell>
				<layout:cell colspan="1" rowspan="1">
					<w:textField id="nameTf" />
				</layout:cell>

				<layout:cell colspan="1" rowspan="1">
					<h:outputLabel value="#{label.pack_mnemocode}" for="mnemocodeTf" />
				</layout:cell>
				<layout:cell colspan="1" rowspan="1">
					<w:textField id="mnemocodeTf" />
				</layout:cell>

				<layout:cell colspan="4" rowspan="1" align="right">
					<w:button id="search" label="#{label.button_search}" />
				</layout:cell>

				<layout:cell colspan="4">
					<w:editDataGrid paged="true" id="packGrid" styleClass="centerGrid" width="800" toolBarPosition="both" height="300" rows="10" >
					    <w:outputColumn id="id" hidden="true"></w:outputColumn>
						<w:outputColumn id="mnemocode" header="#{label.pack_table_mnemocode}" sortable="true">
							<w:textField id="mnemocodeEdit"></w:textField>
						</w:outputColumn>
						<w:outputColumn id="name" header="#{label.pack_table_name}" sortable="true">
							<w:textField id="nameEdit"></w:textField>
						</w:outputColumn>

						<w:toolBar target="packGrid">
							<w:button label="#{label.button_add}" image="/quick56/resources/img/new.gif" id="add" />
							<w:separator />
							<w:button label="编辑" image="/quick56/resources/img/save.gif" id="edit" />
							<w:separator />
							<w:button label="#{label.button_delete}" image="/quick56/resources/img/delete.gif"
								id="delete" />
							<w:button id="export" label="#{label.button_export_excel}" />
						</w:toolBar>
						<w:pagingToolbar for="packGrid" target="packGrid" />

					</w:editDataGrid>
				</layout:cell>

				<layout:cell colspan="4" align="right">
					<w:button id="save" value="#{label.button_save}" />
				</layout:cell>
			</layout:panelGrid>
		</w:form>
	</w:page>
</f:view>